package cn.tao.hrm.exception;

public enum ErrorCode {
    //不可为空的错误码
    CODE_200_SUCCESS(200,"操作成功！"),
    CODE_500_SYSTEM_ERROR(500,"系统错误，请联系管理员！"),
    CODE_400_PARAM_ERROR(400,"jsr303自己获取信息"),
    CODE_400_TENANT_EXSIT(400001,"机构已入住，请直接登录！"),
    CODE_400_TENANT_ADMIN_EXSIT(400002,"该管理员有机构，请直接登录！");


    private int code;
    private String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ErrorCode{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
